js格式化日期,獲取當月的第一天,與最后一天. //格式化日期 function setDate(date){ y=date.getFullYear(); m=date.getMonth()+1; d=da ...